//
// Created by hsj on 2022/1/11.
//

#include <iostream>
#include "t_const.h"

//但是如果要覆盖这种特殊的const行为变成共享， 1.cpp文件中：extern const int const_can_extern_out = 9988;
//                                      2.cpp文件中：extern const int const_can_extern_out;
extern const int const_can_extern_out = 9988;

void can_extern_out_func(){
    using namespace std;

    cout<<"can_extern_out_func const_like_static "<<const_like_static<<" addr "<<&const_like_static<<endl;
    cout<<"can_extern_out_func const_can_extern_out "<<const_can_extern_out<<" addr "<<&const_can_extern_out<<endl;
}